package com.mathdroid.model.items;

import java.util.HashMap;

/**
 * This is an item map. The items are unique by name.
 */
public final class ItemMap extends HashMap<String, Item> {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = -6447746503484954198L;
	
	/**
	 * The name of the item template / item outfit.
	 */
	private String name = "Unnamed";

	/**
	 * Set the name of this template.
	 * @param n Name.
	 */
	public void setName(final String n) {
		this.name = n;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}
